﻿using AutoMapper;
using Traceability.APP.Application.Command.Breeds;
using Traceability.APP.Application.Command.Deepprocessings;
using Traceability.APP.Application.Command.Pictures;
using Traceability.APP.Application.Command.Slaughters;
using Traceability.APP.Application.Command.Traceablitys;
using Traceability.Damoin;

namespace Traceability.APP
{
    public class Mapping:Profile
    {
        public Mapping()
        {
            CreateMap<AddTraceablityCommand , Traceablity>().ReverseMap();
            CreateMap<UpdateTraceablityCommand, Traceablity>().ReverseMap();
            CreateMap<AddBreedCommand, Breed>().ReverseMap();
            CreateMap<UpdateBreedCommand, Breed>().ReverseMap();
            CreateMap<AddImmunityCommand, Immunity>().ReverseMap();
            CreateMap<UpdateImmunityCommand, Immunity>().ReverseMap();
            CreateMap<AddEnterpriseCommand, Enterprise>().ReverseMap();
            CreateMap<UpdateEnterpriseCommand, Enterprise>().ReverseMap();
            CreateMap<AddpictureCommand, Picture>().ReverseMap();
            CreateMap<UpdatepictureCommand, Picture>().ReverseMap();
            CreateMap<AddSlaughterCommand, Slaughter>().ReverseMap();
            CreateMap<UpdateSlaughterCommand, Slaughter>().ReverseMap();
            CreateMap<AddSlaughteringenterpriseCommand, Slaughteringenterprise>().ReverseMap();
            CreateMap<UpdateSlaughteringenterpriseCommand, Slaughteringenterprise>().ReverseMap();
            CreateMap<AddDeepprocessingCommand, Deepprocessing>().ReverseMap();
            CreateMap<UpdateDeepprocessingCommand, Deepprocessing>().ReverseMap();
            CreateMap<AddMachiningEnterpriseCommand, MachiningEnterprise>().ReverseMap();
            CreateMap<UpdateMachiningEnterpriseCommand, MachiningEnterprise>().ReverseMap();
        }
    }
}
